package com.qf.springbootdemo02.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author q
 * @version V1.0
 * @date 2021/11/16
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_user")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer userId;
    private String username;

    @TableField  //指定查询时不查该列
    private String password;
    private String nickName;
    private Integer isAdmin;
    private String phone;
    private Integer gender;
    private Integer userStatus;

    private Date userCreateTime;

    private Date userUpdateTime;

    private Integer isDelete;
    private Integer isMember;
    private BigDecimal balance;
}
